package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.PurchaseReceiptItem;

/**
 * 进货单明细Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-20
 */
public interface PurchaseReceiptItemMapper 
{
    /**
     * 查询进货单明细
     * 
     * @param id 进货单明细主键
     * @return 进货单明细
     */
    public PurchaseReceiptItem selectPurchaseReceiptItemById(Long id);

    /**
     * 查询进货单明细列表
     * 
     * @param purchaseReceiptItem 进货单明细
     * @return 进货单明细集合
     */
    public List<PurchaseReceiptItem> selectPurchaseReceiptItemList(PurchaseReceiptItem purchaseReceiptItem);

    /**
     * 新增进货单明细
     * 
     * @param purchaseReceiptItem 进货单明细
     * @return 结果
     */
    public int insertPurchaseReceiptItem(PurchaseReceiptItem purchaseReceiptItem);

    /**
     * 修改进货单明细
     * 
     * @param purchaseReceiptItem 进货单明细
     * @return 结果
     */
    public int updatePurchaseReceiptItem(PurchaseReceiptItem purchaseReceiptItem);

    /**
     * 删除进货单明细
     * 
     * @param id 进货单明细主键
     * @return 结果
     */
    public int deletePurchaseReceiptItemById(Long id);

    /**
     * 批量删除进货单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseReceiptItemByIds(Long[] ids);

    List<PurchaseReceiptItem> selectPurchaseReceiptItemByReceiptCode(String receiptCode);
}
